/**
 * 全局SCSS变量和混入
 */

/* 颜色变量 */
$primary-color: #6A82FB;
$primary-gradient-start: #6A82FB;
$primary-gradient-end: #FC5C7D;

$background-start: #E0F2F7;
$background-middle: #E8EAF6;
$background-end: #EDE7F6;
$card-background: rgba(255, 255, 255, 0.9);

$text-primary: #000000;
$text-secondary: rgba(0, 0, 0, 0.7);

/* 起卦图标背景色 */
$voice-icon-bg1: #E6F7FF;
$voice-icon-bg2: #C2E6FF;
$photo-icon-bg1: #FFE0E6;
$photo-icon-bg2: #FFD0E0;
$time-icon-bg1: #E0FFE6;
$time-icon-bg2: #C2FFD0;
$number-icon-bg1: #FFFAE0;
$number-icon-bg2: #FFF7C2;

/* 尺寸变量 */
$border-radius-sm: 8rpx;
$border-radius-md: 16rpx;
$border-radius-lg: 24rpx;
$border-radius-xl: 32rpx;

$spacing-xs: 8rpx;
$spacing-sm: 16rpx;
$spacing-md: 24rpx;
$spacing-lg: 32rpx;
$spacing-xl: 48rpx;

/* 字体大小 */
$font-size-xs: 24rpx;
$font-size-sm: 28rpx;
$font-size-base: 32rpx;
$font-size-lg: 36rpx;
$font-size-xl: 40rpx;
$font-size-2xl: 48rpx;

/* 混入 */
@mixin card-shadow {
  box-shadow: 0 8rpx 32rpx rgba(106, 130, 251, 0.15);
}

@mixin light-shadow {
  box-shadow: 0 4rpx 16rpx rgba(106, 130, 251, 0.1);
}

@mixin primary-gradient {
  background: linear-gradient(135deg, $primary-gradient-start 0%, $primary-gradient-end 100%);
}

@mixin background-gradient {
  background: linear-gradient(135deg, $background-start 0%, $background-middle 50%, $background-end 100%);
}

@mixin flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

@mixin flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@mixin text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@mixin multi-line-ellipsis($lines: 2) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $lines;
  -webkit-box-orient: vertical;
}